<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title></title>
    <!-- <link rel="stylesheet" href="/newmain/css/bootstrap.min.css"/>
    <link rel="stylesheet" href="/newmain/css/bootstrap-responsive.min.css"/>
    <link rel="stylesheet" href="/newmain/css/fullcalendar.css"/>
    <link rel="stylesheet" href="/newmain/css/matrix-style.css"/>
    <link rel="stylesheet" href="/newmain/css/matrix-media.css"/>
    <link href="/newmain/font-awesome/css/font-awesome.css" rel="stylesheet"/>
    <link rel="stylesheet" href="/newmain/css/jquery.gritter.css"/> -->
    <link rel="stylesheet" href="/layui/css/layui.css">
	<link rel="stylesheet" href="/css/custom.form.css">
    
    <script type="text/javascript" src="/js/main/jquery.js"></script>
    <!-- <script language="JavaScript" src="/newmain/js/bizjs/anjian.js"></script> -->
    <script src="/layui/layui.all.js" charset="utf-8"></script>
    <script src="/js/jquery.min.js"></script>
    <script src="/js/core.util.js"></script>
    <!-- <script src="/newmain/js/echarts.min.js"></script> -->
</head>
<body>
<div id="content" style="width: 100%;">
    <input type="hidden" th:value="${key}" id="key"/>
    
    <div id="content-header">
        <div id="breadcrumb">
        	
        </div>
    </div>
    <div class="row-fluid" style="height: 550px;">
        <div class="widget-box">
            <div class="widget-title bg_lg">
            	
            </div>
            <div class="widget-content">
                <div class="row-fluid">
                    <div class="span12">
                        <div id="jssl" class="nopadding"  name="container" style="display: none;">
                            <table class="layui-table" id="jsslShowTable" lay-filter="jsslShowTable"></table>
                        </div>
                        
                        <div id="zzjcsl" class="nopadding" name="container" style="display: none;">
                            <table class="layui-table" id="zzjcslShowTable" lay-filter="zzjcslShowTable"></table>
                        </div>
                        
                        <div id="yjslsl" class="nopadding" name="container" style="display: none;">
                            <table class="layui-table" id="yjslslShowTable" lay-filter="yjslslShowTable"></table>
                        </div>
                        
                        <div id="yjzxsl" class="nopadding" name="container" style="display: none;">
                            <table class="layui-table" id="yjzxslShowTable" lay-filter="yjzxslShowTable"></table>
                        </div>
                        
                        <div id="jasl" class="nopadding" name="container" style="display: none;">
                            <div id="jaslShowTable1Div">
                            	<table class="layui-table" id="jaslShowTable1" lay-filter="jaslShowTable1"></table>
                            </div>
                            <div id="jaslShowTable2Div">
                                <table class="layui-table" id="jaslShowTable2" lay-filter="jaslShowTable2"></table>
                            
                            </div>
                            <div id="jaslShowTable3Div">
                                <table class="layui-table" id="jaslShowTable3" lay-filter="jaslShowTable3"></table>
                            </div>
                            
                        </div>
                        
                    </div>
                </div>
            </div>
        </div>
    </div>
    
    
</div>
</body>
</html>

<script>
    $(function () {
    	$("#breadcrumb").html("");
    	if($("#key").val() == "'jssl'"){
    		// 接收案件数量
    		$("#jssl").css("display","");
    		$("#zzjcsl").css("display","none");
    		$("#yjslsl").css("display","none");
    		$("#yjzxsl").css("display","none");
    		$("#jasl").css("display","none");
    		// $("#breadcrumb").html("<a class='layui-layer-btn0' style='cursor:pointer;text-decoration:underline'>接收案件数量</a>");
    		jsslShowTableLoad();
    		
    	}else if($("#key").val() == "'zzjcsl'"){
    		// 正在检查数量
    		$("#jssl").css("display","none");
    		$("#zzjcsl").css("display","");
    		$("#yjslsl").css("display","none");
    		$("#yjzxsl").css("display","none");
    		$("#jasl").css("display","none");
    		
    		// $("#breadcrumb").html("<a class='layui-layer-btn0' style='cursor:pointer;text-decoration:underline'>正在检查数量</a>");

    		zzjcslShowTableLoad();
    		
    	}else if($("#key").val() == "'yjslsl'"){
    		// 移交审理数量
    		$("#jssl").css("display","none");
    		$("#zzjcsl").css("display","none");
    		$("#yjslsl").css("display","");
    		$("#yjzxsl").css("display","none");
    		$("#jasl").css("display","none");
    		// $("#breadcrumb").html("<a class='layui-layer-btn0' style='cursor:pointer;text-decoration:underline'>移交审理数量</a>");
    		yjslslShowTableLoad();
    		
    	}else if($("#key").val() == "'yjzxsl'"){
    		// 移交执行数量
    		$("#jssl").css("display","none");
    		$("#zzjcsl").css("display","none");
    		$("#yjslsl").css("display","none");
    		$("#yjzxsl").css("display","");
    		$("#jasl").css("display","none");
    		
    		// $("#breadcrumb").html("<a class='layui-layer-btn0' style='cursor:pointer;text-decoration:underline'>移交执行数量</a>");

    		yjzxslShowTableLoad();
    		
    	}else if($("#key").val() == "'jasl'"){
    		// 结案
    		$("#jssl").css("display","none");
    		$("#zzjcsl").css("display","none");
    		$("#yjslsl").css("display","none");
    		$("#yjzxsl").css("display","none");
    		$("#jasl").css("display","");
    		
    		$("#breadcrumb").html("<span onclick='jaslShowTableLoad1()' class='layui-layer-btn0' style='padding: 20px;cursor:pointer;text-decoration:underline'>1.执行完毕</span>"
    		+"<span onclick='jaslShowTableLoad2()' class='layui-layer-btn0' style='padding: 20px;cursor:pointer;text-decoration:underline'>2.终结</span>"
    		+"<span onclick='jaslShowTableLoad3()' class='layui-layer-btn0' style='padding: 20px;cursor:pointer;text-decoration:underline'>3.办结</span>");

    		jaslShowTableLoad1();
    		
    	}else{
    		
    	}

    })
    
    // 获取token
	var token = CoreUtil.getData("access_token");
	// 地址栏转义token中的#号
	var tokenQuery = token.replace("#", "%23");
	
	var jsslShowTable;
	var zzjcslShowTable;
	var yjslslShowTable;
	var yjzxslShowTable;
	var jaslShowTable;
	
	var table = layui.table;
	var form = layui.form;
	var layer = layui.layer;
	var $ = jQuery = layui.jquery;
	var laydate = layui.laydate;
	var upload = layui.upload;
	var element = layui.element;
    
	layui.use([ 'table', 'layer', 'laydate', 'upload', 'element' ], function() {
		
		table.on('tool(jsslShowTable)', function (obj) {
			 let event = obj.event;
			 var swryDm = obj.data.swryDm;
			 if (event === "jssl"){
				var jssl = obj.data.jssl;
				if(jssl == "0"){
					layer.msg("当前选中数量为0！");
				}else{
					var _url = "/index/mainSelectchief3?key=jssl&swryDm="+swryDm;
					window.parent.skipOpen(_url,"11001","接收案件数");
				}
				 
			 }else if(event === "zzjcsl"){
				var zzjcsl = obj.data.zzjcsl;
				if(zzjcsl == "0"){
					layer.msg("当前选中数量为0！");
				}else{
					var _url = "/index/mainSelectchief3?key=zzjcsl&swryDm="+swryDm;
					window.parent.skipOpen(_url,"11001","正在检查数");
				}
				
			 }else if(event === "zhustssl"){
				var zhustssl = obj.data.zhustssl;
				if(zhustssl == "0"){
					layer.msg("当前选中数量为0！");
				}else{
					var _url = "/index/mainSelectchief3?key=zhustssl&swryDm="+swryDm;
					window.parent.skipOpen(_url,"11001","助手提审");
				}
			 }else if(event === "tsajsl"){
				var tsajsl = obj.data.tsajsl;
				if(tsajsl == "0"){
					layer.msg("当前选中数量为0！");
				}else{
					var _url = "/index/mainSelectchief3?key=tsajsl&swryDm="+swryDm;
					window.parent.skipOpen(_url,"11001","三期提审");
				}
			 }else if(event === "zzxajsl"){
				var zzxajsl = obj.data.zzxajsl;
				if(zzxajsl == "0"){
					layer.msg("当前选中数量为0！");
				}else{
					var _url = "/index/mainSelectchief3?key=zzxajsl&swryDm="+swryDm;
					window.parent.skipOpen(_url,"11001","转执行");
				}
			 }else if(event === "zxwbsl"){
				var zxwbsl = obj.data.zxwbsl;
				if(zxwbsl == "0"){
					layer.msg("当前选中数量为0！");
				}else{
					var _url = "/index/mainSelectchief3?key=zxwbsl&swryDm="+swryDm;
					window.parent.skipOpen(_url,"11001","执行完毕");
				}
			 }else if(event === "zhzjcsl"){
				var zhzjcsl = obj.data.zhzjcsl;
				if(zhzjcsl == "0"){
					layer.msg("当前选中数量为0！");
				}else{
					var _url = "/index/mainSelectchief3?key=zhzjcsl&swryDm="+swryDm;
					window.parent.skipOpen(_url,"11001","终结检查");
				}
			 }else if(event === "bjsl"){
				var bjsl = obj.data.bjsl;
				if(bjsl == "0"){
					layer.msg("当前选中数量为0！");
				}else{
					var _url = "/index/mainSelectchief3?key=bjsl&swryDm="+swryDm;
					window.parent.skipOpen(_url,"11001","办结");
				}
			 }
		})
		
		
	});
	
    function jsslShowTableLoad(){
    	table.render({
			elem : '#jsslShowTable',
			id : 'jsslShowTable',
			contentType : 'application/json',
			headers : {
				"authorization" : token
			},
			page : false // 开启分页
			,
			totalRow: true //开启合计行
			,
			url : '/workflow/mianclerk/two/jssl' //数据接口
			,
			method : 'POST',
			
			parseData : function(res) { //将原始数据解析成 table 组件所规定的数据
				return {
					"code" : res.code, //解析接口状态
					"msg" : res.msg, //解析提示文本
					"count" : 10000, //解析数据长度
					"data" : CoreUtil.isEmpty(res.data) ? null
							: CoreUtil.paramsDecrypt(res.data.records)
				}
			},
			cols : [ [
			          {
							align : 'center',
							// width : 158,
							field : 'swryxm',
							title : '检查人员',
							sort : true,
							totalRowText: '合计：'
						},{
							align : 'center',
							// width : 158,
							field : 'jssl',
							title : '接受案件数',
							style : 'cursor:pointer;text-decoration:underline',
							event: 'jssl',
							totalRow: '{{parseInt(d.TOTAL_NUMS)}}',
							sort : true,
						},{
							align : 'center',
							// width : 158,
							field : 'zzjcsl',
							title : '正在检查数',
							style : 'cursor:pointer;text-decoration:underline',
							event: 'zzjcsl',
							totalRow: '{{parseInt(d.TOTAL_NUMS)}}',
							sort : true,
						},{
							align : 'center',
							// width : 158,
							field : 'zhustssl',
							title : '助手提审',
							style : 'cursor:pointer;text-decoration:underline',
							event: 'zhustssl',
							totalRow: '{{parseInt(d.TOTAL_NUMS)}}',
							sort : true,
						},{
							align : 'center',
							// width : 158,
							field : 'tsajsl',
							title : '三期提审',
							style : 'cursor:pointer;text-decoration:underline',
							event: 'tsajsl',
							totalRow: '{{parseInt(d.TOTAL_NUMS)}}',
							sort : true,
						},{
							align : 'center',
							// width : 158,
							field : 'zzxajsl',
							title : '转执行',
							style : 'cursor:pointer;text-decoration:underline',
							event: 'zzxajsl',
							totalRow: '{{parseInt(d.TOTAL_NUMS)}}',
							sort : true,
						},{
							align : 'center',
							// width : 158,
							field : 'zxwbsl',
							title : '执行完毕',
							style : 'cursor:pointer;text-decoration:underline',
							event: 'zxwbsl',
							totalRow: '{{parseInt(d.TOTAL_NUMS)}}',
							sort : true,
						},{
							align : 'center',
							// width : 158,
							field : 'zhzjcsl',
							title : '终结检查',
							style : 'cursor:pointer;text-decoration:underline',
							event: 'zhzjcsl',
							totalRow: '{{parseInt(d.TOTAL_NUMS)}}',
							sort : true,
						},{
							align : 'center',
							// width : 158,
							field : 'bjsl',
							title : '办结',
							style : 'cursor:pointer;text-decoration:underline',
							event: 'bjsl',
							totalRow: '{{parseInt(d.TOTAL_NUMS)}}',
							sort : true,
						},
						
			          ] ],
			          done: function(res, curr, count){
			        	     var divArr = $(".layui-table-total div.layui-table-cell");
			        	     $.each(divArr,function (index,item) {
			        	         var _div = $(item);
			        	         var content = _div.html();
			        	         content = content.replace(".00","");
			        	         _div.html(content);
			        	     });
			        	 }
			        	
			// toolbar : '#grdbToolbar'
		});
    }
	
	
    function zzjcslShowTableLoad(){
    	table.render({
			elem : '#zzjcslShowTable',
			contentType : 'application/json',
			headers : {
				"authorization" : token
			},
			page : true // 开启分页
			,
			url : '/workflow/mianclerk/two/zzjcsl' //数据接口
			,
			method : 'POST',
			done: function (res, curr, count) {
                $('.layui-table-tool').hide()
        	},
			parseData : function(res) { //将原始数据解析成 table 组件所规定的数据
				return {
					"code" : res.code, //解析接口状态
					"msg" : res.msg, //解析提示文本
					"count" : CoreUtil.isEmpty(res.data) ? 0 : res.data.total, //解析数据长度
					"data" : CoreUtil.isEmpty(res.data) ? null
							: CoreUtil.paramsDecrypt(res.data.records)
				}
			},
			cols : [ [
					{type: 'checkbox', fixed: 'left'},
					/* {field: 'swjgDm', title: '机关', sort: true}, */
					/* {field: 'swjgmc', title: '机关名称', sort: true}, */
					{field: 'jcry', title: '检查人员', sort: true},
					/* {field: 'jcryxm', title: '检查人员名称', sort: true}, */
					/* {field: 'ajztDm', title: '案件状态', sort: true}, */
					{field: 'ajztmc', title: '案件状态', sort: true},
					/* {field: 'nd', title: '年度', sort: true}, */
					{field: 'jcajbh', title: '案件编号', sort: true},
					{field: 'nsrmc', title: '纳税人名称', sort: true},
					{field: 'jcayxxlymc', title: '案件来源', sort: true},
					{field: 'larq', title: '立案日期', sort: true},
					{field: 'zcrxm', title: '主查', sort: true},
					{field: 'xhrq', title: '检查通知书销号日期', sort: true},
					{field: 'zzpzsj', title: '中止批准日期', sort: true},
					{field: 'scyqpzrq', title: '首次批准日期', sort: true},
					/* {field: 'slyqsqbm', title: '首次延长申请部门', sort: true}, */
					{field: 'slyqsqbmmc', title: '首次延长申请部门名称', sort: true},
					{field: 'zjajpzrq', title: '终结案件批准日期', sort: true},

			          ] ],
			// toolbar : '#grdbToolbar'
		});
    	
    };

    function yjslslShowTableLoad(){
    	table.render({
			elem : '#yjslslShowTable',
			contentType : 'application/json',
			headers : {
				"authorization" : token
			},
			page : true // 开启分页
			,
			url : '/workflow/mianclerk/two/yjslsl' //数据接口
			,
			method : 'POST',
			done: function (res, curr, count) {
                $('.layui-table-tool').hide()
        	},
			parseData : function(res) { //将原始数据解析成 table 组件所规定的数据
				return {
					"code" : res.code, //解析接口状态
					"msg" : res.msg, //解析提示文本
					"count" : CoreUtil.isEmpty(res.data) ? 0 : res.data.total, //解析数据长度
					"data" : CoreUtil.isEmpty(res.data) ? null
							: CoreUtil.paramsDecrypt(res.data.records)
				}
			},
			cols : [ [
			          
			          /* {field: 'swjgDm', title: '机关', sort: true},*/
			          /* {field: 'swjgmc', title: '机关名称', sort: true}, */
			          {field: 'jcry', title: '检查人员名称', sort: true}, 
			          /* {field: 'jcryxm', title: '检查人员名称', sort: true}, */
			          /* {field: 'ajztDm', title: '案件状态', sort: true}, */
			          {field: 'ajztmc', title: '案件状态', sort: true},
			          /* {field: 'nd', title: '年度', sort: true}, */
			          {field: 'larq', title: '立案日期', sort: true},
			          {field: 'jcajbh', title: '案件编号', sort: true},
			          {field: 'ajmc', title: '案件名称', sort: true},
			          {field: 'zcrxm', title: '主查', sort: true},
			          {field: 'sldjrq', title: '审理登记日期', sort: true},
			          {field: 'slry', title: '审理人员', sort: true},
			          {field: 'createTime', title: '返回补充稽查时间', sort: true},
			          {field: 'zcts', title: '再次推送日期', sort: true},
			          {field: 'wssdsjGz', title: '处罚时间', sort: true},
			          {field: 'wssdsjTz', title: '听证申请', sort: true},
			          
			          ] ],
			// toolbar : '#grdbToolbar'
		});
    	
    };

    function yjzxslShowTableLoad(){
    	table.render({
			elem : '#yjzxslShowTable',
			contentType : 'application/json',
			headers : {
				"authorization" : token
			},
			page : true // 开启分页
			,
			url : '/workflow/mianclerk/two/yjzxsl' //数据接口
			,
			method : 'POST',
			done: function (res, curr, count) {
                $('.layui-table-tool').hide()
        	},
			parseData : function(res) { //将原始数据解析成 table 组件所规定的数据
				return {
					"code" : res.code, //解析接口状态
					"msg" : res.msg, //解析提示文本
					"count" : CoreUtil.isEmpty(res.data) ? 0 : res.data.total, //解析数据长度
					"data" : CoreUtil.isEmpty(res.data) ? null
							: CoreUtil.paramsDecrypt(res.data.records)
				}
			},
			cols : [ [
					/* {field: 'swjgDm', title: '机关', sort: true},
					{field: 'swjgmc', title: '机关名称', sort: true},*/
					{field: 'jcry', title: '检查人员', sort: true}, 
					/* {field: 'jcryxm', title: '检查人员名称', sort: true}, */
					/* {field: 'ajztDm', title: '案件状态', sort: true}, */
					{field: 'ajztmc', title: '案件状态', sort: true},
					/* {field: 'nd', title: '年度', sort: true}, */
					{field: 'jcajbh', title: '案件编号', sort: true},
					{field: 'ajmc', title: '案件名称', sort: true},
					{field: 'zxdjrq', title: '执行登记日期', sort: true},
					{field: 'zxry', title: '执行人', sort: true},
					{field: 'xhrqClCf', title: '决定书销号日期', sort: true},
					{field: 'cbje', title: '查补额', sort: true},
					{field: 'rkje', title: '入库额', sort: true},
					{field: 'wszzrqCg', title: '催告时间', sort: true},
					{field: 'qzcs', title: '强制措施', sort: true},
					{field: 'wszzrqQz', title: '强制时间', sort: true}, 

			          ] ],
			// toolbar : '#grdbToolbar'
		});
    	
    };

    function jaslShowTableLoad1(){
    	
    	table.render({
			elem : '#jaslShowTable1',
			contentType : 'application/json',
			headers : {
				"authorization" : token
			},
			page : true // 开启分页
			,
			url : '/workflow/mianclerk/two/jasl1' //数据接口
			,
			method : 'POST',
			done: function (res, curr, count) {
                $('.layui-table-tool').hide()
        	},
			parseData : function(res) { //将原始数据解析成 table 组件所规定的数据
				return {
					"code" : res.code, //解析接口状态
					"msg" : res.msg, //解析提示文本
					"count" : CoreUtil.isEmpty(res.data) ? 0 : res.data.total, //解析数据长度
					"data" : CoreUtil.isEmpty(res.data) ? null
							: CoreUtil.paramsDecrypt(res.data.records)
				}
			},
			cols : [ [
			        
					/*  {field: 'swjgDm', title: '机关', sort: true},
					{field: 'swjgmc', title: '机关名称', sort: true},*/
					{field: 'jcry', title: '检查人员', sort: true}, 
					/* {field: 'jcryxm', title: '检查人员名称', sort: true}, */
					/* {field: 'ajztDm', title: '案件状态', sort: true}, */
					{field: 'ajztmc', title: '案件状态', sort: true},
					/* {field: 'nd', title: '年度', sort: true}, */
					{field: 'jcajbh', title: '案件编号', sort: true},
					{field: 'nsrmc', title: '纳税人名称', sort: true},
					{field: 'jcayxxlymc', title: '案件来源', sort: true},
					{field: 'larq', title: '立案日期', sort: true},
					{field: 'ts', title: '检查天数', sort: true},
					{field: 'zcrxm', title: '主查', sort: true},
					{field: 'slry', title: '审理人员', sort: true},
					{field: 'zxry', title: '执行人员', sort: true},
					{field: 'jarq', title: '结案日期', sort: true},
					{field: 'sfqzzx', title: '是否强制执行', sort: true},
					{field: 'cbje', title: '查补金额', sort: true},
					{field: 'rkje', title: '入库金额', sort: true},
			          ] ],
			// toolbar : '#grdbToolbar'
		});
    	$("#jaslShowTable1Div").show();
    	$("#jaslShowTable2Div").hide();
    	$("#jaslShowTable3Div").hide();
    };
    
    
    function jaslShowTableLoad2(){
    	table.render({
			elem : '#jaslShowTable2',
			contentType : 'application/json',
			headers : {
				"authorization" : token
			},
			page : true // 开启分页
			,
			url : '/workflow/mianclerk/two/jasl2' //数据接口
			,
			method : 'POST',
			done: function (res, curr, count) {
                $('.layui-table-tool').hide()
        	},
			parseData : function(res) { //将原始数据解析成 table 组件所规定的数据
				return {
					"code" : res.code, //解析接口状态
					"msg" : res.msg, //解析提示文本
					"count" : CoreUtil.isEmpty(res.data) ? 0 : res.data.total, //解析数据长度
					"data" : CoreUtil.isEmpty(res.data) ? null
							: CoreUtil.paramsDecrypt(res.data.records)
				}
			},
			cols : [ [
				{field: 'swjgDm', title: '机关', sort: true},
				{field: 'swjgmc', title: '机关名称', sort: true},
				{field: 'jcry', title: '检查人员', sort: true},
				/* {field: 'jcryxm', title: '检查人员名称', sort: true}, */
				{field: 'ajztDm', title: '案件状态', sort: true},
				{field: 'ajztmc', title: '案件状态', sort: true},
				/* {field: 'nd', title: '年度', sort: true}, */
				{field: 'jcajbh', title: '案件编号', sort: true},
				{field: 'ajmc', title: '案件名称', sort: true},
				{field: 'jcayxxlymc', title: '案件来源', sort: true},
				{field: 'larq', title: '立案日期', sort: true},
				{field: 'ts', title: '检查天数', sort: true},
				{field: 'zcrxm', title: '主查', sort: true},
				{field: 'slry', title: '审理人员', sort: true},
				{field: 'zssj', title: '批准日期', sort: true},			        

			          ] ],
			// toolbar : '#grdbToolbar'
		});
    	$("#jaslShowTable1Div").hide();
    	$("#jaslShowTable2Div").show();
    	$("#jaslShowTable3Div").hide();
    };
    
    
    function jaslShowTableLoad3(){
    	table.render({
			elem : '#jaslShowTable3',
			contentType : 'application/json',
			headers : {
				"authorization" : token
			},
			page : true // 开启分页
			,
			url : '/workflow/mianclerk/two/jasl3' //数据接口
			,
			method : 'POST',
			done: function (res, curr, count) {
                $('.layui-table-tool').hide()
        	},
			parseData : function(res) { //将原始数据解析成 table 组件所规定的数据
				return {
					"code" : res.code, //解析接口状态
					"msg" : res.msg, //解析提示文本
					"count" : CoreUtil.isEmpty(res.data) ? 0 : res.data.total, //解析数据长度
					"data" : CoreUtil.isEmpty(res.data) ? null
							: CoreUtil.paramsDecrypt(res.data.records)
				}
			},
			cols : [ [
			          /* {field: 'swjgDm', title: '机关', sort: true}, */
			          {field: 'swjgmc', title: '检查科室', sort: true},
			          {field: 'jcry', title: '检查人员名称', sort: true},
			          /* {field: 'jcryxm', title: '检查人员名称', sort: true}, */
			          /* {field: 'ajztDm', title: '案件状态', sort: true}, */
			          {field: 'ajztmc', title: '案件状态', sort: true},
			          {field: 'nd', title: '立案时间', sort: true},
			          {field: 'jcajbh', title: '案件编号', sort: true},
			          {field: 'ajmc', title: '案件名称', sort: true},
			          {field: 'jcayxxlymc', title: '案件来源', sort: true},
			          {field: 'larq', title: '立案日期', sort: true},
			          {field: 'ts', title: '检查天数', sort: true},
			          {field: 'zcrxm', title: '主查', sort: true},
			          {field: 'slry', title: '审理人员', sort: true},
			          {field: 'zxry', title: '执行人员', sort: true},
			          {field: 'bjyy', title: '办结原因', sort: true},
			          {field: 'bjpzrq', title: '办结时间', sort: true},
			          
			          ] ],
			// toolbar : '#grdbToolbar'
		});
    	
    	$("#jaslShowTable1Div").hide();
    	$("#jaslShowTable2Div").hide();
    	$("#jaslShowTable3Div").show();
    };
    
    
    
    
	function skipOpen(gnurl, gnid, title) {
        if (CoreUtil.isEmpty(gnurl) || CoreUtil.isEmpty(gnid) || CoreUtil.isEmpty(title)) {

            return false;
        } else {
            var gnurlArr = gnurl.split(",");
            var gnidArr = gnid.split(",");
            var titleArr = title.split(",");
            for (var i in gnurlArr) {
                tianzhuan(gnurlArr[i], gnidArr[i], titleArr[i])
            }
        }
    }
	
    function tianzhuan(gnurl, gnid, title) {
        if ($(".layui-tab-title li[lay-id]").length <= 0) {

            var title = "<span>" + title + "</span>";
            active.tabAdd(gnurl, gnid, title);

        } else {
            var isData = false;
            $.each($(".layui-tab-title li[lay-id]"),
                function () {
                    if ($(this).attr("lay-id") == dataid.attr("data-id")) {
                        isData = true;
                    }
                })

            if (isData == false) {
                if (CoreUtil.isEmpty(dataid
                    .attr("data-icon"))) {
                    var title = "<span>"
                        + dataid.attr("data-title")
                        + "</span>";
                    active.tabAdd(dataid.attr("data-url"),
                        dataid.attr("data-id"), title);
                } else {
                    var title = "<span>"
                        + dataid.attr("data-title")
                        + "</span>";
                    title = '<i class="layui-icon '
                        + dataid.attr("data-icon")
                        + '"></i> ' + title;
                    active.tabAdd(dataid.attr("data-url"),
                        dataid.attr("data-id"), title);
                }
            }
        }

        active.tabChange(gnid);
    };
	
  //触发事件
    var active = {
        tabAdd: function (url, id, title) {
            if (url != "" && url != null && url != undefined) {
                window.parent.layui.element
                    .tabAdd(
                        'tab',
                        {
                            title: title,
                            content: '<iframe data-frameid="'
                                + id
                                + '" frameborder="0" name="content" width="100%" src="'
                                + url + '"></iframe>',
                            id: id
                        })
            }
            FrameWH();//计算框架高度
        },
        tabChange: function (id) {
            //切换到指定Tab项
            window.parent.layui.element.tabChange('tab', id); //切换到：用户管理
            $("iframe[data-frameid='" + id + "']").attr("src",
                $("iframe[data-frameid='" + id + "']").attr("src"))//切换后刷新框架
        },
        
    };
  
    function FrameWH() {
        var h = $(window).height();
        $(window.parent.document).find("iframe").css("height", h + "px");
    };
  
</script>